﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Constants</title>
    <script type="text/javascript" src="../js/jquery-1.10.2.js"></script>
    <script type="text/javascript" src="../js/Interface.js"></script>
    <script type="text/javascript" src="../js/Helpers.js"></script>
</head>
<body>
    <div id="content">
    </div>
    <script type="text/javascript">
        var Class = (function () {
            // Private static attributes.
            var constants = {
                UPPER_BOUND: 100,
                LOWER_BOUND: -100
            }
            // Privileged static method.
            //this.getConstant(name) {
            //return constants[name];
            //}

            // Return the constructor.
            //            return function (constructorArgument) {

            //            }
            return {
                getConstant: function (name) { return constants[name]; },
                createInstance: function (constructorArgument) { }
            };
        })();

        $(function () {
            $("#content").html(Class.getConstant("UPPER_BOUND"));
        });
    </script>
</body>
</html>
